<div class="topBar">
      <div class="topTitle">艺术品分类列表</div>
</div>
	<?php echo $this->form;?>
	<br/>
	<br/>
	  <?php
	  
	  foreach ($this->levelOneCategories as $levelOneCategory){
	  	?>
		 <div class="level_one">一级分类：<span id="category_<?php echo $levelOneCategory->id; ?>">
		 <a href="/admin/save-artwork-category/id/<?php echo $levelOneCategory->id; ?>"><?php echo $levelOneCategory->name;?></a>
		 </span></div>
		 <div class="level_two">
	  		<ul class="ui-widget ui-helper-clearfix" id="icons">
		<?php
			foreach($this->levelTwoCategories as $levelTwoCategory){
				if ($levelTwoCategory->parent == $levelOneCategory->id) {
					echo '<li class="ui-state-default ui-corner-all">
						<span id="category_'.$levelTwoCategory->id.'" ><a href="/admin/save-artwork-category/id/'
					. $levelTwoCategory->id . '">'.$levelTwoCategory->name.'</a></span>' 
					. '<span class="x" title="delete this category"><a href="/admin/delete-artwork-category/id/'
					.$levelTwoCategory->id.'">X</a></span></li>';
					
				}
			}
		?>
			</ul>
		</div>
	  <?php
	   }
	   
	  ?>
	  